package com.example.springbootwebrestfulcrud.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @Auther: luzhanshi
 * @Date: 2021/2/27 - 02 - 27 - 15:41 
 * @Description: com.example.springbootwebrestfulcrud.listener
 * @version: 1.0
 */
public class MyListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        System.out.println("web应用启动了");

    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        System.out.println("web应用销毁了");
    }
}
